import store from '@/store'
export function hasPermission (key) {
  return store.state.hasPermission.indexOf(key) !== -1 || false
}